package com.project.bean;

import java.util.List;

/**
 * 部门实体类
 */
public class DeptBean {
    /**部门编号*/
    private Integer id;
    /**部门名称*/
    private String name;
    /**负责人*/
    private String master;
    /**员工人数*/
    private Integer emNum;
    /**部门员工集合*/
    private List<EmployeeBean> emList;

    public DeptBean(String name, String master) {
        this.name = name;
        this.master = master;
    }

    public Integer getEmNum() {
        return emNum;
    }

    public void setEmNum(Integer emNum) {
        this.emNum = emNum;
    }

    public DeptBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public List<EmployeeBean> getEmList() {
        return emList;
    }

    public void setEmList(List<EmployeeBean> emList) {
        this.emList = emList;
    }

    @Override
    public String toString() {
        return "DeptBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", master='" + master + '\'' +
                ", emNum=" + emNum +
                ", emlist=" + emList +
                "}\n";
    }
}
